/**
 * 路由配置
 *
 * @author liuqi
 * @date 2024/12/20 20:45
 **/
import Vue from "vue";
import VueRouter from "vue-router";
Vue.use(VueRouter);

import Layout from "@/layout";

export default new VueRouter({
    routes: [
        {
            path: "/",
            redirect: "/dashboard",
            component: Layout,
            children: [
                {
                    path: "dashboard",
                    component: () => import("@/views/dashboard"),
                },
                {
                    path: "variable",
                    component: () => import("@/views/variable"),
                },
                {
                    path: "model",
                    component: () => import("@/views/model"),
                },
                {
                    path: "tool/webhook",
                    component: () => import("@/views/tool/webhook"),
                },
                {
                    path: "agent",
                    component: () => import("@/views/agent"),
                },
                {
                    path: "agent/arrange",
                    component: () => import("@/views/agent/arrange"),
                },
                {
                    path: "tokens/statistics",
                    component: () => import("@/views/statistics/tokens"),
                }
            ]
        },
    ]
});
